USE [BD_Taller]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

IF OBJECT_ID('dbo.spInsArticulo') IS NOT NULL
	DROP PROCEDURE dbo.spInsArticulo;
GO

CREATE PROCEDURE spInsArticulo
    @descrip varchar(255),
	@marca varchar(255),
	@valor int
AS
BEGIN
	BEGIN TRY 
		INSERT INTO BD_Taller.dbo.Articulo
		VALUES ('',@descrip,@marca,0, 0, '',@valor)
		SELECT 1 respuesta
	END TRY
	BEGIN CATCH
		SELECT 0 respuesta
	END CATCH
END
GO
